<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/>
		<title>测试页面</title>
		<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
		<script>
			function func() {
				$.ajax({
					url: "/qmsz.api/" + document.getElementById("url").value,
					type: "POST",
					data: JSON.stringify({
							"phone" : document.getElementById("phone").value,
							"sms" : document.getElementById("sms").value,
							"cardNo" : document.getElementById("cardNo").value,
							"account" : document.getElementById("account").value,
							"type" : 1,
					}),
					dataType: "json",
					contentType: "application/json;charset=UTF-8",
					success: function(result) { $("#result").html(JSON.stringify(result)); }
				});
			}
		</script>
	</head>
	<body>
		<div>url: <input type="text" id="url"/></div>
		<div>phone: <input type="text" id="phone"/></div>
		<div>SMS: <input type="text" id="sms"/></div>
		<div>cardNo: <input type="text" id="cardNo"/></div>
		<div>account: <input type="text" id="account"/></div>
		<button type="button" onclick="func()">Post</button>
		<div>Result: <span id="result">null</span></div>
	</body>
</html>